package com.cdhkppm.controller;

import com.cdhkppm.dto.SwitchExecutersDTO;
import com.cdhkppm.service.impl.SwitchExecutersServiceImpl;
import com.hustcad.plm.pdm.core.constant.ApiPathConstant;
import com.hustcad.plm.pdm.core.handle.exception.SystemErrorCodeEnum;
import com.cdhkppm.service.SwitchExecutersService;

import com.hustcad.plm.rpm.model.dto.job.JobStatusUpdateDTO;
import com.hustcad.plm.rpm.model.entity.job.TyppmJob;
import com.hustcad.plm.rpm.model.vo.recent.TyppmOperationRecordVO;
import com.hustcad.plm.rpm.service.job.TyppmJobService;
import com.ty.basic.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.naming.ldap.PagedResultsControl;
import java.util.List;


/**
 * The type Test controller.
 */
@RestController
@Api(tags = "xxx服务")
@RequestMapping(ApiPathConstant.PARENT_VERSION_ONE_PATH + "test")
public class SwitchExecutersController {

  @Resource
  private SwitchExecutersService switchExecutersService;
    /**
     * Xxx response result.
     *
     * @return the response result
     */
    @PostMapping("/switchExecuters")
    @ApiOperation(value = "switchExecuters", notes = "项目管理转交", produces = "application/json; charset=utf-8")
    public ResponseResult docList(@RequestBody List<SwitchExecutersDTO> switchExecutersDTO) {
        switchExecutersService.transferToTheExecutor(switchExecutersDTO);
        return ResponseResult.success();
    }
}
